<?php
/**
 * 用户统计Widget
 * @version TS3.0
 */
class UserSkillsWidget extends Widget{
	
	public function render($data)
	{
		$var['uid'] = empty($data['uid'])? $GLOBALS['ts']['mid'] : intval($data['uid']);
		$var['user_tag'] = model('UserTag')->getUserAllTag($var['uid']);
		// 渲染模版
		$content = $this->renderFile(dirname(__FILE__)."/user_skills.html", $var);
		// 输出数据
		return $content;
	}
}
?>